public class Test3 {
    public static void main(String[] args) {
        MethodGeneric generic=new MethodGeneric();
        generic.setName("张三");
        generic.setName(123);
        MethodGeneric generic1=new MethodGeneric();
        String name=generic1.getName("bjsx");
        Integer name1=generic1.getName(123);
        System.out.println(name);
        System.out.println(name1);
    }
}
